package com.lei2j.adapter;

public class AdapterDuck implements Turkey {

	private Duck duck;
	
	public AdapterDuck(Duck duck) {
		this.duck = duck;
	}
	
	@Override
	public void fly() {
		duck.fly();
	}

	@Override
	public void gobble() {
		duck.quack();
	}

	public Duck getDuck() {
		return duck;
	}

	public void setDuck(Duck duck) {
		this.duck = duck;
	}

}
